// @ts-ignore
/* eslint-disable */
import request from '@/utils/httpInstance';

/** 此处后端没有提供注释 POST /service/interface-info/increase-interface-invoke-count */
export async function increaseInterfaceInvokeCount(body: API.InterfaceIdAndUserIdRequest, options?: { [key: string]: any }) {
  return request<API.SimpleRpcResponseBoolean>('/service/interface-info/increase-interface-invoke-count', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /service/interface-info/retrieve-interface-info */
export async function getInterfaceInfo(body: API.RetrieveInterfaceInformationRequest, options?: { [key: string]: any }) {
  return request<API.InterfaceInfo>('/service/interface-info/retrieve-interface-info', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /service/interface-info/retrieve-remaining-invoke-count */
export async function retrieveRemainingInvokeCount(body: API.InterfaceIdAndUserIdRequest, options?: { [key: string]: any }) {
  return request<API.SimpleRpcResponseInteger>('/service/interface-info/retrieve-remaining-invoke-count', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
